<?php /* Smarty version Smarty-3.1.8, created on 2012-11-05 23:00:59
         compiled from "D:\personalweb\personal\tomatoframework\tomatocli/template\list.html" */ ?>
<?php /*%%SmartyHeaderCode:186135097d4ab067955-70773815%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '64973df6cd217cfdb90640302b39aecc38e7a428' => 
    array (
      0 => 'D:\\personalweb\\personal\\tomatoframework\\tomatocli/template\\list.html',
      1 => 1351522484,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '186135097d4ab067955-70773815',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'resourceName' => 0,
    'caption' => 0,
    'col' => 0,
    'pk' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5097d4ab0a6e39_88799813',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5097d4ab0a6e39_88799813')) {function content_5097d4ab0a6e39_88799813($_smarty_tpl) {?><ul class="breadcrumb">
    <li class="active"><?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
 list</li>
    <li><a href="/<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
/create">create</a></li>
</ul>

<table class="table table-striped table-hover">
    <thead>
        <tr>
            <th><?php echo $_smarty_tpl->tpl_vars['caption']->value;?>
</th>
            <?php  $_smarty_tpl->tpl_vars["col"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["col"]->_loop = false;
 $_from = ($_smarty_tpl->tpl_vars['listFields']->value); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["col"]->key => $_smarty_tpl->tpl_vars["col"]->value){
$_smarty_tpl->tpl_vars["col"]->_loop = true;
?>
     
            <th><?php echo $_smarty_tpl->tpl_vars['col']->value;?>
</th>
       
            <?php } ?>
        </tr>
    </thead>
    <tbody>
        {foreach from="$<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
s" item="<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
"}
        <tr>
            <td>
                <a href="/<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
/show/{$<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
.<?php echo $_smarty_tpl->tpl_vars['pk']->value;?>
}">{$<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
.<?php echo $_smarty_tpl->tpl_vars['caption']->value;?>
}</a>
            </td>
            
            <?php  $_smarty_tpl->tpl_vars["col"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["col"]->_loop = false;
 $_from = ($_smarty_tpl->tpl_vars['listFields']->value); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["col"]->key => $_smarty_tpl->tpl_vars["col"]->value){
$_smarty_tpl->tpl_vars["col"]->_loop = true;
?>

            <td>
                <a href="/<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
/show/{$<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
.<?php echo $_smarty_tpl->tpl_vars['pk']->value;?>
}">{$<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
.<?php echo $_smarty_tpl->tpl_vars['col']->value;?>
}</a>
            </td>
      
            <?php } ?>
        </tr>
        {/foreach}
    </tbody>
</table>

<?php }} ?>